﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{    
    class ShopNpc:Npc
    {
        private string _shop;
        public ShopNpc(string name, NpcType NpcType,string Shop) : base(name, NpcType)
        {
            
        }
        public string Shop
        {
            get { return this._shop; }
            set { this._shop = value; }
        }
        public override void Speak()
        {
            
            Console.WriteLine("类型{0},{1},贩卖{2}",base.Name,base.NpcType,this.Shop);
        }
    }
}
